<#assign tit><#if _oper='add'>新增<#else>修改</#if>商品类型</#assign>
<@page.html title=tit>
<script type="text/javascript" src="${_appPath!}/js/cal.js"></script>
<div style="width:500px;">

  <form id="fm_input" method="post" action="<#if _oper='add'>_add<#else>_edit</#if>" onsubmit="return post(this);">
    <div class="kbox">
      <div style="width:450px; float:left;">
        <table class="input">
          <tr>
            <th width="25%">类型编号</th>
            <td width="75%"><#if _oper='add'><input type="text" name="typeCode" value="${ppsProductTypeCode.typeCode!}" req="类型编号" size="16" maxlength="20"><span class="require">*</span><#else><input type="hidden" name="typeCode" value="${ppsProductTypeCode.typeCode!}">${ppsProductTypeCode.typeCode!}</#if></td>
          </tr>
          <tr>
            <th>类型名称</th>
            <td><input type="text" name="typeName" value="${ppsProductTypeCode.typeName!}" req="类型名称" size="34" maxlength="50"><span class="require">*</span></td>
          </tr>
          <tr>
            <th>财务分类</th>
            <td><select name="traCode" style="width:280px;"><option value=""></option><#if tranCode??><#list tranCode as t><option value="${t.tranCode}"<#if ppsProductTypeCode.traCode?? && ppsProductTypeCode.traCode=t.tranCode> selected</#if>>${t.tranCode} - ${t.codeName}</option></#list></#if></select></td>
          </tr>
          <tr>
            <th>储值卡支付</th>
            <td><input type="radio" class="cb" name="useGiftCard" id="useGiftCard_0" value="0"<#if !ppsProductTypeCode.useGiftCard?? || ppsProductTypeCode.useGiftCard!=1> checked</#if>><label for="useGiftCard_0">否</label>
              <input type="radio" class="cb" name="useGiftCard" id="useGiftCard_1" value="1"<#if ppsProductTypeCode.useGiftCard?? && ppsProductTypeCode.useGiftCard=1> checked</#if>><label for="useGiftCard_1">是</label></td>
          </tr>
          <tr>
            <th>备注</th>
            <td colspan="3"><textarea name="note" cols="34" rows="2">${ppsProductTypeCode.note!}</textarea></td>
          </tr>
        </table>
      </div>
      <div class="clear"></div>
    </div>
    <div class="button"><input type="submit" value="提 交"></div>
  </form>
</div>
</@page.html>